﻿#include "CmdSavePostMarkerRemoveChosenSettingData.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSavePostMarkerRemoveChosenSettingData::CmdSavePostMarkerRemoveChosenSettingData()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSavePostMarkerRemoveChosenSettingData::~CmdSavePostMarkerRemoveChosenSettingData()
    {
    }

    bool CmdSavePostMarkerRemoveChosenSettingData::execute()
    {
        emit IBaseSignalInstance->signal_savePostMarkerRemoveChosenSettingData(m_windowUniversalID, m_removeChosenId);
        return true;
    }

    void CmdSavePostMarkerRemoveChosenSettingData::undo()
    {
    }

    void CmdSavePostMarkerRemoveChosenSettingData::redo()
    {
        // execute();
    }

    void CmdSavePostMarkerRemoveChosenSettingData::savePostMarkerRemoveChosenSettingData(int windowUniversalID, QString removeChosenId)
    {
        m_windowUniversalID = windowUniversalID;
        m_removeChosenId = removeChosenId;
    }

} // namespace PostCommand
